package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行程对象 trip
 * 
 * @author lj
 * @date 2022-02-24
 */
@ApiModel(value = "行程表")
public class Trip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 用户ID */
    @ApiModelProperty(value = "用户ID")
    @Excel(name = "用户ID")
    private Long userId;

    /** 省 */
    @ApiModelProperty(value = "省ID")
    @Excel(name = "省")
    private Integer provinceId;

    /** 市 */
    @ApiModelProperty(value = "市ID")
    @Excel(name = "市")
    private Integer cityId;

    /** 县 */
    @ApiModelProperty(value = "县ID")
    @Excel(name = "县")
    private Integer areaId;

    /** 居住地 */
    @ApiModelProperty(value = "居住地")
    @Excel(name = "居住地")
    private String address;

    /** 始发地 */
    @ApiModelProperty(value = "始发地")
    @Excel(name = "始发地")
    private String startArea;

    /** 终点地 */
    @ApiModelProperty(value = "终点地")
    @Excel(name = "终点地")
    private String endArea;

    /** 交通工具 */
    @ApiModelProperty(value = "交通工具")
    @Excel(name = "交通工具")
    private String tool;

    /** 班次 */
    @ApiModelProperty(value = "班次")
    @Excel(name = "班次")
    private String number;

    /** 开始时间 */
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 健康状态 0正常，1发热，2干咳，3乏力，4腹泻，5感冒，6头痛头晕，7其他 */
    @ApiModelProperty(value = "健康状态")
    @Excel(name = "健康状态")
    private Integer healthStatus;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "父ID")
    private Integer delFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProvinceId(Integer provinceId) 
    {
        this.provinceId = provinceId;
    }

    public Integer getProvinceId() 
    {
        return provinceId;
    }
    public void setCityId(Integer cityId) 
    {
        this.cityId = cityId;
    }

    public Integer getCityId() 
    {
        return cityId;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStartArea(String startArea) 
    {
        this.startArea = startArea;
    }

    public String getStartArea() 
    {
        return startArea;
    }
    public void setEndArea(String endArea) 
    {
        this.endArea = endArea;
    }

    public String getEndArea() 
    {
        return endArea;
    }
    public void setTool(String tool) 
    {
        this.tool = tool;
    }

    public String getTool() 
    {
        return tool;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setHealthStatus(Integer healthStatus) 
    {
        this.healthStatus = healthStatus;
    }

    public Integer getHealthStatus() 
    {
        return healthStatus;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("provinceId", getProvinceId())
            .append("cityId", getCityId())
            .append("areaId", getAreaId())
            .append("address", getAddress())
            .append("startArea", getStartArea())
            .append("endArea", getEndArea())
            .append("tool", getTool())
            .append("number", getNumber())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("healthStatus", getHealthStatus())
            .append("delFlag", getDelFlag())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
